<?php
/**
 * Created by PhpStorm.
 * User: wanglong
 * Date: 2017/12/26
 * Time: 22:16
 */

namespace app\common\services;


class BaseServices
{
    protected static $_error_msg=null;
    protected static $_error_code=null;
    public static function _error($msg,$code=-1){
        self::$_error_msg=$msg;
        self::$_error_code=$code;
        return false;
    }

    public static function getLastErrorMsg(){
        return self::$_error_msg;
    }

    public static function getLastErrorCode(){
        return self::$_error_code;
    }
}